'''
Created on 2013/02/26

@author: sakurai
'''
from pygitlabapi import ApiMethodCollectionBase
   
class Session(ApiMethodCollectionBase):
  @classmethod
  def get_session(cls, api, email, password):
    cls._validate_arguments(api)
    params = {
      "email": email,
      "password": password
    }
    cls._validate_arguments_not_None(params)
    return api._do_POST(api.api_base+"/session", params)
